const mongoose = require('mongoose')

/**
 * 用户类
 */
const UserSchema = mongoose.Schema({
    headimgurl: String,
    nickname: String,
    openid: String,
    sex: Number
})

const User = mongoose.model('user', UserSchema)

module.exports = User
